package common.entities.persistent;

import common.entities.abst.AbstPersistentEntity;
import common.entities.enums.PATTERN;

/**
 * @author Dani boy!
 *
 */
public class DBQuestion extends AbstPersistentEntity {
	
	private PATTERN pattern;
	private int questionLevel;
	private String question;
	private int rightAnswerId;
	private String[] answers;
	
	public DBQuestion(int id, PATTERN pattern, int questionLevel, String question,
			int rightAnswerId, String[] answers) {
		super(id);
		
		this.pattern = pattern;
		this.questionLevel = questionLevel;
		this.question = question;
		this.rightAnswerId = rightAnswerId;
		this.answers = answers;
	}
	
	public DBQuestion(PATTERN pattern, int questionLevel, String question,
			int rightAnswerId, String[] answers) {
		super();
		this.pattern = pattern;
		this.questionLevel = questionLevel;
		this.question = question;
		this.rightAnswerId = rightAnswerId;
		this.answers = answers;
	}

	/**
	 * @return the pattern
	 */
	public PATTERN getPattern() {
		return pattern;
	}

	/**
	 * @return the questionLevel
	 */
	public int getQuestionLevel() {
		return questionLevel;
	}

	/**
	 * @return the questionParametersIds
	 */
	public String getQuestion() {
		return question;
	}

	/**
	 * @return the rightAnswerId
	 */
	public int getRightAnswerId() {
		return rightAnswerId;
	}

	/**
	 * @return the wrongAnswersIds
	 */
	public String[] getAnswers() {
		return answers;
	}


}
